From a60db765d41c73f984e6b8a01c5a7f24dce409ab Mon Sep 17 00:00:00 2001 From: "arun.sharma@intel.com[kaf24]" Date: Tue, 24 May 2005 08:19:59 +0000 Subject: [PATCH] bitkeeper revision 1.1523 (4292e3afzZhOD910qby84MZZyEFPZQ) [PATCH] qemu-unregister-c0000.patch QEMU fixes - VMX domain owns 0xcxxxx. - guard the fprintf with a log level check Signed-off-by: Arun Sharma --- tools/ioemu/hw/pc.c | 2 +- tools/ioemu/target-i386-dm/helper2.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/ioemu/hw/pc.c b/tools/ioemu/hw/pc.c index 7bd85e7372..11bc03dd4a 100644 --- a/tools/ioemu/hw/pc.c +++ b/tools/ioemu/hw/pc.c @@ -419,11 +419,11 @@ void pc_init(int ram_size, int vga_ram_size, int boot_device, ret = load_image(buf, phys_ram_base + vga_bios_offset); #endif +#ifndef NOBIOS /* setup basic memory access */ cpu_register_physical_memory(0xc0000, 0x10000, vga_bios_offset | IO_MEM_ROM); -#ifndef NOBIOS /* map the last 128KB of the BIOS in ISA space */ isa_bios_size = bios_size; if (isa_bios_size > (128 * 1024)) diff --git a/tools/ioemu/target-i386-dm/helper2.c b/tools/ioemu/target-i386-dm/helper2.c index ae8b763ea2..6ac4349fc5 100644 --- a/tools/ioemu/target-i386-dm/helper2.c +++ b/tools/ioemu/target-i386-dm/helper2.c @@ -313,7 +313,8 @@ do_interrupt(CPUState *env, int vector) intr = &(((vcpu_iodata_t *) shared_page)->vp_intr[0]); atomic_set_bit(vector, intr); - fprintf(logfile, "injecting vector: %x\n", vector); + if (loglevel & CPU_LOG_INT) + fprintf(logfile, "injecting vector: %x\n", vector); env->send_event = 1; } -- 2.30.2